<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>jGuery Test</title>
    <script type="text/javascript" language="javascript" src="jguery/jguery.nocache.js"></script>
    <script language="javascript">
        function updateIndex() {
            var engine = new jGuery.jGuery();
            engine.updateIndexByTag("p");
            var ids = engine.getIds("hello");
            alert(ids);
        }
    </script>
  </head>
  <body>
    <!-- OPTIONAL: include this if you want history support -->
    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>

    <h1>jGuery test</h1>
    <button onclick="updateIndex();">hello</button>
    <form>
        <input name="index" value="p" id="index"/>
        <input type="submit" value="Index" id="button0"/>
        <span id="indexStats">Index stats</span>
    </form>
    <br/>
    <form>
        <input name="q" value="" id="query"/>
        <input type="submit" value="Search" id="button1"/>
        <span id="queryStats">Matched docs</span>
    </form>
    <br/>
    <div class="index0" style="float:left; width:50%">
        <h3>class: index0</h3>
        <p>hello world! I am new to the search industry</p>
        <p>seems I made it work, good test</p>
        <p>I want a further test</p>
        <p>"not sure if I am crazy</p>
    </div>
    <div class="index1" style="">
        <h3>class: index1</h3>
        <p>hello world I am not that new to the search industry</p>
        <p>seems I made it work good test</p>
        <p>I want a further test</p>
        <p>not sure if I am crazy</p>
    </div>
  </body>
</html>
